SET SPRITE FRAME

This command will set the frame of the specified sprite.

  Syntax
SET SPRITE FRAME Sprite Number, Frame Value
  Parameters
Sprite Number
Integer
The sprite number
Frame Value
Integer
The frame number to use

  Returns

This command does not return a value.

  Description

When a sprite contains an animated sequence of frames created with the CREATE ANIMATED SPRITE command, you can set the frame directly using this command. The parameters should be specified using integer values.

  Example Code
create animated sprite 1,"manwalking.bmp",1,16,16,1
cls
sprite 1,100,100,1
set sprite frame 1,5
do
loop
end
  See also

SPRITE Commands Menu
Index